package net.srcz.jsjvm2;

public class ConstantConverter {

	public static String convert(Object cst) {
		if(cst != null && cst instanceof String)
			return "\'"+((String)cst).replaceAll("'", "\\'")+"\'";
		return ""+cst;
	}
}
